package com.cmy.dao;

import com.cmy.pojo.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface UserMapper {
    //根据id查询用户
    User queryUser(@Param("id") int id);
    //修改用户名
    @Update("update user set name = #{name} where id = #{id}")
    int updateUserName(@Param("id") int id,@Param("name")String name);
}
